import pytest
data = [
    ("ren", "123"),
    ("qzcsbj", "456")
]

@pytest.fixture()
def uname(request):
    uname = request.param
    print(f"当前返回参数是：uname={uname}")
    return uname


@pytest.fixture()
def pwd(request):
    pwd = request.param
    print(f"当前返回参数是：pwd={pwd}")
    return pwd

@pytest.mark.parametrize("uname,pwd", data,indirect=True)
def test_case(uname,pwd):
    print(f"uname：{uname}，pwd：{pwd}")